xen/x86: Add a helper to calculate family/model/stepping information
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Sep 2016 09:38:27 +0000 (10:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2016 14:00:06 +0000 (14:00 +0000)
commit3d3c4c5c2fe70896ce7f93d61d298f62eb14092f
tree0df06ed8d2ea802b56be43d164f41d7fa8d03633
parentcc50fa3051947e1b72f87f22767886a7904761fe
xen/x86: Add a helper to calculate family/model/stepping information

And replace the existing opencoded calculations.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/domctl.c
xen/include/asm-x86/processor.h